Imports System.Collections.Generic
Imports DataLayer
Imports EntityLayer

Public Class OrdenCompraBL

    Public Shared Function ObtenerNuevoCodigo() As Integer
        Return OrdenCompraDA.ObtenerNuevoCodigo
    End Function

    Public Shared Function Agregar(ByVal OrdenCompraEN As OrdenCompraE) As Boolean
        Return OrdenCompraDA.Agregar(OrdenCompraEN)
    End Function

    Public Shared Function Actualizar(ByVal OrdenCompraEN As OrdenCompraE) As Boolean
        Return OrdenCompraDA.Actualizar(OrdenCompraEN)
    End Function

    Public Shared Function ListarOrdenes() As DataSet
        Return OrdenCompraDA.ListarOrdenes
    End Function

    Public Shared Function Eliminar(ByVal intIdOrdenCompra As Integer) As Boolean
        Return OrdenCompraDA.Eliminar(intIdOrdenCompra)
    End Function

    Public Shared Function SeleccionarxCodigo(ByVal intIdOrden As Integer) As DataSet
        Return OrdenCompraDA.SeleccionarxCodigo(intIdOrden)
    End Function

    Public Shared Function ListarTodo() As DataSet
        Return OrdenCompraDA.ListarTodo
    End Function

End Class
